<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue底层代码封装</title>
</head>
<body>
    
</body>
<script src="./Vue.js"></script>
<script>
    let vue = new Vue({
        data: () => {
            return {
                name: '蒋皓天'
            }
        },
        watch: {
            name(newValue,oldValue ) {
                console.log('监听到变化了:', newValue, oldValue)
            }
        }
    })
    console.log('vue:', vue)
    vue.name = '周钰'
</script>
</html>